package com.yuntu.chapter4;

import java.util.Scanner;

/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class Demo2 {
    public static void main(String[] args) {
        Scanner input= new Scanner(System.in);
        System.out.println("请问是否合格?");
        //存放是否合格的变量
        String answer=input.next();

        //循环判断是否合格(不合格)
        while(!answer.equals("是")){
            System.out.println("上午...下午....");
            System.out.println("请问是否合格?");
            answer=input.next();
        }


    }
}
